package cn.wit.test;

import java.math.BigDecimal;
import java.math.BigInteger;

public class DemoSeries {
	public static void main(String[] args) {
		int n = 1;
		int sum = 0;
		BigDecimal b = new BigDecimal(1);

		while (n <= 100) {
			sum = sum + n;
			b = b.multiply(new BigDecimal(n));
			n++;
		}
		System.out.println(b);
		System.out.println(sum);
	}

}
